import 'package:flutter/material.dart';

class StateLessCase extends StatelessWidget {
  const StateLessCase({Key? key, required this.title}) : super(key: key);

//无状态组件传参必须要用final定义参数
  final String title;

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Text(
        title,
        style: TextStyle(color: Colors.blue, fontSize: 40),
      ),
    );
  }
}
